g++ preproc_matrix.cpp -O3 -g -o preproc_matrix
g++ preproc_vec.cpp -O3 -g -o preproc_vec

DATA_PATH=/root/final-data

for var in u v w e k p s
do    
    mkdir -p ${DATA_PATH}/小水线面双体船/${var}_101
    if [ "$var" != "e" ]; then
        ./preproc_matrix ${DATA_PATH}/小水线面双体船/matrix_${var}_101.dat ${DATA_PATH}/小水线面双体船/${var}_101 2849291 20149067
    else
        ./preproc_matrix ${DATA_PATH}/小水线面双体船/matrix_${var}_101.dat ${DATA_PATH}/小水线面双体船/${var}_101 2849291 19357108
    fi
    ./preproc_vec ${DATA_PATH}/小水线面双体船/vector_init_${var}_101.dat ${DATA_PATH}/小水线面双体船/${var}_101 2849291 0
    ./preproc_vec ${DATA_PATH}/小水线面双体船/vector_rhs_${var}_101.dat ${DATA_PATH}/小水线面双体船/${var}_101 2849291 1
done

for var in u v w e k p s
do    
    mkdir -p ${DATA_PATH}/kcs水面船/${var}_101
    if [ "$var" != "e" ]; then
        ./preproc_matrix ${DATA_PATH}/kcs水面船/matrix_${var}_101.dat ${DATA_PATH}/kcs水面船/${var}_101 589940 4141924
    else
        ./preproc_matrix ${DATA_PATH}/kcs水面船/matrix_${var}_101.dat ${DATA_PATH}/kcs水面船/${var}_101 589940 4049160
    fi
    ./preproc_vec ${DATA_PATH}/kcs水面船/vector_init_${var}_101.dat ${DATA_PATH}/kcs水面船/${var}_101 589940 0
    ./preproc_vec ${DATA_PATH}/kcs水面船/vector_rhs_${var}_101.dat ${DATA_PATH}/kcs水面船/${var}_101 589940 1
done
